import { AuthGuard } from '@midwayjs/casbin';
import { Controller, Get, UseGuard } from '@midwayjs/decorator';

@Controller('/')
export class HomeController {
  @UseGuard(AuthGuard)
  @Get('/')
  async home(): Promise<string> {
    return 'Hello Midwayjs!';
  }
}
